package com.bci.pwtz.mysql.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bci.pwtz.mysql.model.Resource;

public interface ResourceMapper {

	int deleteByPrimaryKey(Long resid);
	
	int deleteById(Long resid);

    int insert(Resource record);

    int insertSelective(Resource record);

    Resource selectByPrimaryKey(Long resid);

    int updateByPrimaryKeySelective(Resource record);

    int updateByPrimaryKey(Resource record);
	
    List<Resource> selectResourceList(@Param("beginIndex")int beginIndex,@Param("pageSize")int pageSize,@Param("restype") int restype,@Param("resname") String resname);
    
    int selectResourceCount(@Param("restype") int restype,@Param("resname") String resname);
    
}
